<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>CreateRibbonEffect</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CreateRibbonEffect()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#3A3966"><b>CreateRibbonEffect</b></font>(#Effect, MaterialID, NbChains, NbElements, Length)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Create a new ribbon trail effect. Once created, the effect has to be attached with <a href="attachribboneffect.html">AttachRibbonEffect()</a>. It is possible 
to hide the effect with <a href="hideeffect.html">HideEffect()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Effect</i></td>
<td width="90%"> 
The number to identify the new effect. <a href="../reference/purebasic_objects.html">#PB_Any</a> 可以用来自动生成这个编码. 

</td></tr>
<tr><td><i>MaterialID</i></td>
<td> 
 
The material to apply on the ribbon trail. To get a valid 'MaterialID', use <a href="../material/materialid.html">MaterialID()</a>. 

 

</td></tr>
<tr><td><i>NbChains</i></td>
<td> 
 
Number of chains of the ribbon trail. The more chains, the more precise the ribbon will be. 

 

</td></tr>
<tr><td><i>NbElements</i></td>
<td> 
 
Number of elements per chains. The more elements, the more precise the ribbon will be. 

 

</td></tr>
<tr><td><i>Length</i></td>
<td> 
 
Maximum length, in world unit, of the ribbon. Once the length is reached the ribbon will be completely fade out. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns nonzero if the effect was created successfully and zero if there was an error. 
If <font color="#924B72">#PB_Any</font> was used as the #Effect parameter then the new generated number is returned on success. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="freeeffect.html">FreeEffect()</a>, <a href="hideeffect.html">HideEffect()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=createlensflareeffect.html>CreateLensFlareEffect()</a> - <a href="index.html">SpecialEffect Index</a> - <a href="detachribboneffect.html">DetachRibbonEffect()</a> -&gt;<br><br>

</body></html>